package com.xyw.his00.controller;

import com.xyw.his00.mapper.RegisterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class TestController {
    @Autowired
    private RegisterMapper registerMapper;
    @RequestMapping("selectById{id}")
    public String selectById(@RequestParam("id") String id){
        //1.${}型字符参数注入
    String registername= registerMapper.selectByID(id);
        //2.#{}型字符参数注入
        System.out.println(registername);
        return registername;
    }
}
